package cn.lhq.controller.customer;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.lhq.bean.User;
import cn.lhq.bean.VoteResult;
import cn.lhq.service.VoteService;

@Controller
@RequestMapping("/customer")
public class VoteCustomerController {
	@Resource
	VoteService voteService;
	
	@RequestMapping("/vote.do")
	@ResponseBody
	public VoteResult createUser(Integer id) throws Exception{
		VoteResult result = voteService.addCount(id);
		return result;
	}	
	
}
